package com.pany.domain.models;

import java.sql.Timestamp;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.Generated;

import play.db.jpa.GenericModel;

@Entity
@Table(name = "t_user")
public class User extends GenericModel
{
    @Id
    private String userId;
    
    private String userName;
    
    private String passwd;
    
    private String sex;
    
    @Transient
    private String sexName;
    
    private int age;
    
    private Timestamp createTime;
    
    private String realName;
    
    private String userType;
    
    @Transient
    private String userTypeName;
    
    public User()
    {
    }
    
    public String getUserType()
    {
        return userType;
    }
    
    public void setUserType(String userType)
    {
        this.userType = userType;
    }
    
    public String getUserTypeName()
    {
        return userTypeName;
    }
    
    public void setUserTypeName(String userTypeName)
    {
        this.userTypeName = userTypeName;
    }
    
    public String getUserId()
    {
        return userId;
    }
    
    public void setUserId(String userId)
    {
        this.userId = userId;
    }
    
    public String getUserName()
    {
        return userName;
    }
    
    public void setUserName(String userName)
    {
        this.userName = userName;
    }
    
    public String getPasswd()
    {
        return passwd;
    }
    
    public void setPasswd(String passwd)
    {
        this.passwd = passwd;
    }
    
    public String getSex()
    {
        return sex;
    }
    
    public void setSex(String sex)
    {
        this.sex = sex;
    }
    
    public int getAge()
    {
        return age;
    }
    
    public void setAge(int age)
    {
        this.age = age;
    }
    
    public Timestamp getCreateTime()
    {
        return createTime;
    }
    
    public void setCreateTime(Timestamp createTime)
    {
        this.createTime = createTime;
    }
    
    public String getRealName()
    {
        return realName;
    }
    
    public void setRealName(String realName)
    {
        this.realName = realName;
    }
    
    public String getSexName()
    {
        return sexName;
    }
    
    public void setSexName(String sexName)
    {
        this.sexName = sexName;
    }
    
}
